package com.ray.service;

import com.ray.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;


public interface UserService
{
    /**
     * 根据id获得用户
     *
     * @param id
     * @return
     */
    User getUserById(long id);

    /**
     * 获得所有用户
     *
     * @return
     */
    List<User> getUserList();
}
